<template>
    <base-dialog v-bind="$attrs" v-on="$listeners" :title="title" size="tiny" @submit="toAdd" :disabled="false">
        <el-form ref="elForm" label-width="auto" :model="formData" :rules="rules">
            <el-form-item label="意见" prop="suggestion">
                <el-input v-model="formData.suggestion" type="textarea" :autosize="{minRows: 6, maxRows: 6}"></el-input>
            </el-form-item>
            <el-form-item label="排序" prop="no_order">
                <el-input-number v-model="formData.no_order"></el-input-number>
            </el-form-item>
        </el-form>
    </base-dialog>
</template>
<script>
    import DetailDialog from "@/mixins/DetailDialog";
    import BaseDialog from "@/components/Common/BaseDialog";
    export default {
        name: "PayDetailDialog",
        components: {BaseDialog},
        mixins: [DetailDialog],
        data() {
            return {
                formData: {
                    suggestion: "",
                    no_order: 0,
                },
                rules: {
                    suggestion: [
                        {required: true, message: "意见不能为空", trigger: "blur"}
                    ],
                },
            }
        },
        computed: {
            title() {
                return "新增意见"
            },
        },
        methods: {
        }
    }
</script>
